﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Code.Models
{
    /// <summary>
    /// 用户类型
    /// </summary>
    public enum UserType
    {
        /// <summary>
        /// 会员
        /// </summary>
        Member=0,
        /// <summary>
        /// 代理
        /// </summary>
        Surrogate=1
    }
    public static class UserTypeEx
    {
        public static string GetName(this UserType type)
        {
            switch (type)
            { 
                case UserType.Member:
                    return "会员";
                case UserType.Surrogate:
                    return "代理";
                default:
                    return type.ToString();
            }
        }
    }
}
